package com.dream.oproject.base.service;

import java.io.Serializable;

import com.dream.oproject.base.dao.IBaseDao;
import com.dream.oproject.base.model.IdEntity;
import com.dream.oproject.page.PageInfo;

public interface IBaseService<T extends IdEntity,PK extends Serializable>{
	
	public T getObjectByPK(PK pk);
	
	public int deleteObjectByPk(PK pk);
	
	public T saveObject(T object);
	
	public PageInfo getObjectListByPage(PageInfo pageInfo);
	
	public void setBaseDao(IBaseDao<T, PK> dao);
	
	public void setBaseDao(String daoName);
}
